From 451c6a3707c89a5871af4337bab8bd517e305ce0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 3 May 2006 17:52:41 +0000 Subject: [PATCH] Don't leak the cairo context here. (#340522, Christian Persch) 2006-05-03 Matthias Clasen * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the cairo context here. (#340522, Christian Persch) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ gtk/gtkprintunixdialog.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4d7952a00c..83b3802ca4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-05-03 Matthias Clasen + * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the + cairo context here. (#340522, Christian Persch) + * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't use gtk_dialog_run for the error dialog, and improve the dialog in other ways. (#340510, Christian Persch) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4d7952a00c..83b3802ca4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2006-05-03 Matthias Clasen + * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the + cairo context here. (#340522, Christian Persch) + * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't use gtk_dialog_run for the error dialog, and improve the dialog in other ways. (#340510, Christian Persch) diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index b390035fd3..9ac102f996 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -1920,6 +1920,8 @@ draw_page_cb (GtkWidget *widget, } } + cairo_destroy (cr); + return TRUE; } -- 2.30.2